package cn.st4rlight.util.convert;

import org.apache.commons.lang3.StringUtils;

import cn.st4rlight.util.convert.base.IConverter;
import cn.st4rlight.util.exception.ConvertException;

/**
 * @author st4rlight <st4rlight@163.com>
 * Created on 2025-10-18
 */
public class ByteArrayConverter implements IConverter<byte[]> {

    @Override
    public byte[] convert(String value) throws ConvertException {
        return StringUtils.trimToEmpty(value).getBytes();
    }
}
